projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f6ec5b
)
label: Redraw when text attrs are affected by css change
author
Timm Bäder
<mail@baedert.org>
Tue, 14 Apr 2020 13:22:52 +0000
(15:22 +0200)
committer
Timm Bäder
<mail@baedert.org>
Fri, 17 Apr 2020 13:21:00 +0000
(15:21 +0200)
GtkWidget doesn't do it automatically and probably shouldn't
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index 4bf1e685ae115c2929d23b3816dfb92cb31d0f6d..a2ffff86aca3e344e8f3d5a0b5a16668b888a40c 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-3306,7
+3306,12
@@
gtk_label_css_changed (GtkWidget *widget,
attrs_affected = FALSE;
if (change == NULL || attrs_affected || (self->select_info && self->select_info->links))
- gtk_label_update_layout_attributes (self, new_attrs);
+ {
+ gtk_label_update_layout_attributes (self, new_attrs);
+
+ if (attrs_affected)
+ gtk_widget_queue_draw (widget);
+ }
}
static PangoDirection